/*
 * @Author: your name
 * @Date: 2022-03-26 22:17:37
 * @LastEditTime: 2022-04-03 23:51:01
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \drivingTow\src\practice\dto\create-practice.dto.ts
 */
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
import { IsNotEmpty, IsNumber } from "class-validator";

export class CreatePracticeDto {
  @ApiPropertyOptional({ description: '8点' })
  readonly Eight: string;

  @ApiPropertyOptional({ description: '10点' })
  readonly ten: string;

  @ApiPropertyOptional({ description: '12点' })
  readonly twelve: string;

  @ApiPropertyOptional({ description: '14点' })
  readonly fourteen: string;

  @ApiPropertyOptional({ description: '16点' })
  readonly sixteen: string;

  @IsNotEmpty()
  @ApiProperty({description:'科目分类'})
  readonly catogary:string;

  @IsNotEmpty()
  @ApiProperty({ description: '建表时间' })
  readonly create_time: string;
}

export class PracticeInfoDto {
  public id: number;
  public Eight: string;
  public ten: string;
  public twelve: string;
  public fourteen: string;
  public sixteen: string;
  public coach: string;
  public coachName: string;
  public catogary: string;
  public telephone: string;
  public create_time:string;
}

export interface PracticeRo {
  list: PracticeInfoDto[];
  Total: number;
}